package gl.android.biyiqing;

import gl.BaseFragemtActivity;
import gl.uitls.Lg;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;

public class BYQBaseActivity extends BaseFragemtActivity {
	public final static String KEY_USER_ID = "userid";
	public final static String KEY_USER_DATA = "data";
	@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
	@Override
	public View onCreateView(View parent, String name, Context context,
			AttributeSet attrs) {
//		if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.JELLY_BEAN) {
//			getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); 
//		}
		return super.onCreateView(parent, name, context, attrs);
	}

	@Override
	public void onAttachedToWindow() {
		super.onAttachedToWindow();
		initTitleBar();
		Lg.i("onAttachedToWindow");
	}

	protected void initTitleBar() {
		if (findViewById(R.id.ll_menu_right1) != null) {
			findViewById(R.id.ll_menu_right1).setVisibility(View.GONE);
		}
		if (findViewById(R.id.ll_menu_right2) != null) {
			findViewById(R.id.ll_menu_right2).setVisibility(View.GONE);
		}
	}
}
